package com.runfast.waimai.service.impl;

import com.runfast.common.service.BaseService;
import com.runfast.waimai.dao.mapper.RunfastBusinessMapper;
import com.runfast.waimai.dao.model.RunfastBusiness;
import com.runfast.waimai.dao.model.RunfastBusinessExample;
import com.runfast.waimai.dao.model.RunfastShopper;
import com.runfast.waimai.service.RunfastBusinessService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Date;
import java.util.List;

@Service(value = "runfastBusinessService")
public class RunfastBusinessServiceImpl extends BaseService<RunfastBusiness, Integer, RunfastBusinessExample> implements RunfastBusinessService {
  @Resource
    RunfastBusinessMapper dao;
    @Override
    public RunfastBusiness findById(Integer id) {
        return dao.findById(id);
    }

  @Override
  public List<RunfastBusiness> findByAll() {
    return dao.findByAll();
  }

  @Override
  public Integer findtotal() {
    return dao.findtotal();
  }

  @Override
  public List<RunfastBusiness> findByAgentnameAndbusinessnameAndTime(Integer agentid, String name, Date createtime1, Date createtime2) {
    return dao.findByAgentnameAndbusinessnameAndTime(agentid, name, createtime1,createtime2);
  }


}